//#include "stm32f0xx_conf.h"
//#include "stm32f0xx_gpio.h"
//#include "stm32f0xx.h"
//#include "LCD.h"



//int lcd_write() //Main function
//{ 

////initgpio();

//int k=0; 
//char a[]="WWW.EEHERALD.COM";
//char b[]="EMBEDDED SYSTEMS";

//GPIOE->BRR=RS; //Initialize RS=0 for selecting instruction Send
//GPIOE->BRR=RW; // Select RW=0 to write Instruction/data on LCD
//GPIOE->BSRR=EN; // EN=1 for unlatch. (used at initial condition)

//delay(10);

//lcd_init(); //Call Instruction Select routine
//GPIOA->ODR=0x0001; // Clear Display, Cursor to Home 
//lcd_latch(); //Latch the above instruction 
//GPIOA->ODR=0x0038; // Display Function (2 rows for 8-bit data; small) 
//lcd_latch(); //Latch this above instruction 4 times
//lcd_latch(); 
//lcd_latch(); 
//lcd_latch(); 
//GPIOA->ODR=0x000E; // Display and Cursor on, Cursor Blink off 
//lcd_latch(); //Latch the above instruction 
//GPIOA->ODR=0x0010; // Cursor shift left 
//lcd_latch(); //Latch the above instruction 
//GPIOA->ODR=0x0006; // Cursor Increment, Shift off 
//lcd_data(); //Change the input type to Data.(before it was instruction input)
//lcd_latch(); //Latch the above instruction

//for(k=0;a[k];k++)
//{
//GPIOA->ODR=a[k]; //It will send a[0]='P' as = '0x0050' on Port A.
//lcd_latch(); //Latch the above instruction only once. Or it will clone each character twice if you latch twice.
//}
//GPIOE->BRR=RS; //Initialize RS=0 for selecting instruction Send
//GPIOE->BRR=RW; // Select RW=0 to write Instruction/data on LCD
//GPIOE->BSRR=EN; // EN=1 for unlatch. (used at initial condition)

//delay(10);
//GPIOA->ODR=0x00C0; // Move cursor to beginning of second row 
//lcd_latch(); //Latch the above instruction
//lcd_data(); //Change the input type to Data.(before it was instruction input)
//for(k=0;b[k];k++)
//{
//GPIOA->ODR=b[k]; //It will send b[0]='E' as = '0x0044' on Port A.
//lcd_latch();//Latch the above instruction only once. Or it will clone each character twice if you latch twice.
//}
//lcd_init(); 
//}